package com.zhijian.warehouse.manage.dao;


import com.zhijian.warehouse.manage.entity.po.OfficeGroup;
import com.zhijian.warehouse.manage.entity.vo.request.OfficeGroupSearchVo;
import com.zhijian.warehouse.manage.entity.vo.response.OfficeGroupVo;

import java.util.List;

public interface OfficeGroupMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OfficeGroup record);

    int insertSelective(OfficeGroup record);

    OfficeGroup selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OfficeGroup record);

    int updateByPrimaryKey(OfficeGroup record);

    int count(OfficeGroupSearchVo officeGroupSearchVo);

    List<OfficeGroupVo> selectList(OfficeGroupSearchVo officeGroupSearchVo);

    OfficeGroupVo selectVoById(Long id);

    /**
     * 根据名称查询
     *
     * @param name
     * @return
     */
    OfficeGroup selectByName(String name);

    /**
     * 根据名称查找
     *
     * @param name
     * @return
     */
    OfficeGroupVo selectVoByName(String name);
}